package com.sc.outpatientsys.mapper;

import com.sc.outpatientsys.entity.Diagnosis;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DiagnosisMapper {
    int insertDiagnosis(Diagnosis diagnosis);
    Diagnosis findDiagnosisByID(int dg_ID);
    Diagnosis findDiagnosisByCR_ID(int cr_ID);
    List<Diagnosis> findAll();
    int updateDiagnosis(Diagnosis diagnosis);
    int updateDiagnosis_MedList(@Param("med_ID_List") String med_ID_List, @Param("cr_ID") int cr_ID);
    int deleteDiagnosis(int cr_ID);
    int deleteDiagnosisByDg_Id(int dg_ID);
}
